home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
273_01
/
sstrrt.cc
< prev
next >
Wrap
Text File
|
1988-04-03
|
375b
|
15 lines
s_str_rt(int count, char *str)
/* This will shift the characters in the string pointed to by *str right
count number of characters. Blanks will be added in the positions where
character are shifted out
*/
{
int x;
int len = strlen(str);
if(count >= len) return;
memmove(str+count,str,len-count);
for(x=0;x<count;x++)
*(str + x) = ' ';
}